export const initState={
    // 初始化data
    // 轮播图
    banner: [],
}

export const reducer=(state,action)=>{
    switch(action.type){
        case "changeBanner":
            return {
                ...state,
                banner:action.banner
            }
        default:
            return state;
    }
}

export const actions={
    changeBanner:banner=>({type:"changeBanner",banner}),
}